INCLUDE_DIRECTORIES(/home/zhiguangq/workspace/liveencoder/LiveEncoder/src)
INCLUDE_DIRECTORIES(/home/zhiguangq/3rd-party/boost/include)
INCLUDE_DIRECTORIES(/home/zhiguangq/3rd-party/poco/include)
INCLUDE_DIRECTORIES(/home/zhiguangq/3rd-party/log4cxx/include)

LINK_DIRECTORIES(/home/zhiguangq/3rd-party/boost/lib)
LINK_DIRECTORIES(/home/zhiguangq/3rd-party/poco/lib)
LINK_DIRECTORIES(/home/zhiguangq/3rd-party/log4cxx/lib)

ADD_DEFINITIONS(-DDEBUG)
SET(EXECUTABLE_OUTPUT_PATH ../../liveencoder/bin)

SET(SRC_FILE ${SRC_FILE} kugou/base/facility/Json.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/base/facility/SystemConfig.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/base/facility/Demangle.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/base/facility/log.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/base/facility/SysHealth.cpp)

SET(SRC_FILE ${SRC_FILE} kugou/server/http/HTTPConnection.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/server/http/HTTPConnectionManager.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/server/http/HTTPReply.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/server/http/HTTPRequestHandler.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/server/http/HTTPRequestParser.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/server/http/HTTPServer.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/server/http/HTTPClient.cpp)

SET(SRC_FILE ${SRC_FILE} kugou/server/http/handler/AddEncodeChannel.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/server/http/handler/AddEncodeChannelSuccess.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/server/http/handler/DelEncodeChannel.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/server/http/handler/RegisterEncoder.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/server/http/handler/EncoderHeartbeat.cpp)


SET(SRC_FILE ${SRC_FILE} kugou/server/encoder/EncoderWorker.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/server/encoder/EncoderLibrary.cpp)
SET(SRC_FILE ${SRC_FILE} kugou/server/encoder/Heartbeat.cpp)

SET(SRC_FILE ${SRC_FILE} kugou/server/scheduleencoder/ScheduleEncoderLibrary.cpp)

SET(SRC_FILE ${SRC_FILE} encoder/main.cpp)

ADD_EXECUTABLE(liveencoder ${SRC_FILE})
add_definitions(-DBOOST_LOG_DYN_LINK)
TARGET_LINK_LIBRARIES(liveencoder boost_system)
TARGET_LINK_LIBRARIES(liveencoder boost_filesystem)
TARGET_LINK_LIBRARIES(liveencoder boost_program_options)
TARGET_LINK_LIBRARIES(liveencoder PocoFoundation)
TARGET_LINK_LIBRARIES(liveencoder log4cxx)
TARGET_LINK_LIBRARIES(liveencoder stdc++)
